/* ============================================
   onfz — main stylesheet
   Dark theme with metallic gold/copper/wine accents
   pulled from the onfz wordmark.
   Variables at the top — tweak these to re-skin.
   ============================================ */

:root {
  /* surfaces — deep burgundy/wine, matched to the onfz wordmark */
  --bg:       #1a0610;
  --bg-elev:  #26101c;
  --surface:  #321826;
  --ink:      #f5e7d8;
  --ink-mute: #a89084;
  --line:     rgba(255, 200, 150, 0.10);

  /* accents — metallic gold + copper, pulled from the logo */
  --accent-gold:   #f4b740;
  --accent-amber:  #e08820;
  --accent-copper: #c2541d;
  --accent-wine:   #7a1530;

  /* gradients */
  --gradient-hot:
    linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 50%, var(--accent-copper) 100%);
  --gradient-soft:
    linear-gradient(135deg, rgba(244, 183, 64, 0.15) 0%, rgba(194, 84, 29, 0.15) 100%);

  /* shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* depth */
  --shadow-glow: 0 0 60px rgba(244, 183, 64, 0.22), 0 0 120px rgba(194, 84, 29, 0.20);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset;

  /* motion */
  --t-fast: 160ms cubic-bezier(.2, .7, .3, 1);
  --t-med:  280ms cubic-bezier(.2, .7, .3, 1);

  /* type */
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Consolas', monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* utility — keeps element in the DOM and accessible to screen readers,
   but invisible and zero-size for sighted users */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ----- background ambient orbs + grid ----- */
.orb {
  position: fixed;
  width: 60vw; height: 60vw;
  max-width: 800px; max-height: 800px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.orb--cyan {
  /* class name retained for HTML stability — color now gold to match logo */
  background: radial-gradient(circle, var(--accent-gold), transparent 60%);
  top: -15vw; left: -15vw;
}
.orb--magenta {
  /* class name retained for HTML stability — color now deep wine */
  background: radial-gradient(circle, var(--accent-wine), transparent 60%);
  bottom: -20vw; right: -10vw;
  opacity: 0.6;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
          mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* ----- top bar ----- */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
}
/* topbar--end: only the status pill remains; align it to the right */
.topbar--end {
  justify-content: flex-end;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo {
  /* small wordmark — wider than tall */
  width: 64px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(244, 183, 64, 0.4));
}

.brand__name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  background: var(--gradient-hot);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-mute);
}
/* status pill — colors driven by data-status on the dot, set by JS */
.status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-mute);
  transition: background 200ms ease, box-shadow 200ms ease;
}
.status__dot[data-status="up"] {
  background: #4ade80;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 1.8s ease-in-out infinite;
}
.status__dot[data-status="pending"] {
  background: var(--accent-amber);
  box-shadow: 0 0 12px var(--accent-amber);
  animation: pulse 1.8s ease-in-out infinite;
}
.status__dot[data-status="down"] {
  background: #f87171;
  box-shadow: 0 0 12px #f87171;
}
.status__dot[data-status="unknown"] {
  background: var(--ink-mute);
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%      { transform: scale(1.3); opacity: 0.6; }
}

/* ----- per-card live status dot (live cards only) ----- */
.card__status-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-mute);
  z-index: 2;
  transition: background 200ms ease, box-shadow 200ms ease;
}
.card__status-dot[data-status="up"] {
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  animation: pulse 1.8s ease-in-out infinite;
}
.card__status-dot[data-status="pending"] {
  background: var(--accent-amber);
  box-shadow: 0 0 10px rgba(224, 136, 32, 0.6);
}
.card__status-dot[data-status="down"] {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.6);
}
.card__status-dot[data-status="unknown"] {
  background: var(--ink-mute);
  opacity: 0.5;
}

/* ----- hero ----- */
.hero {
  position: relative;
  z-index: 1;
  padding: 8vh 32px 6vh;
  text-align: center;
}
.hero__inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero__logo {
  /* wide wordmark — fit, don't crop */
  width: min(420px, 80vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(244, 183, 64, 0.35))
          drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero__title-line { display: block; opacity: 0.75; }
.hero__title-brand {
  display: block;
  background: var(--gradient-hot);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(244, 183, 64, 0.5));
}

.hero__tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink);
  margin: 0;
  max-width: 600px;
}
.hero__sub {
  font-size: 0.98rem;
  color: var(--ink-mute);
  margin: 0;
  max-width: 540px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-med),
    background var(--t-med);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary {
  color: #1a0610;
  background: var(--gradient-hot);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* ----- services grid ----- */
.services {
  position: relative;
  z-index: 1;
  padding: 4vh 32px 10vh;
  max-width: 1100px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-head__sub {
  color: var(--ink-mute);
  margin: 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--t-fast),
    border-color var(--t-med),
    box-shadow var(--t-med);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 183, 64, 0.45);
  box-shadow: var(--shadow-card), 0 0 40px rgba(244, 183, 64, 0.20);
}
.card:hover::before { opacity: 1; }

.card__icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-soft);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  position: relative; z-index: 1;
}
.card__desc {
  color: var(--ink-mute);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.5;
  position: relative; z-index: 1;
  flex: 1;
}
.card__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-mute);
  border: 1px solid var(--line);
  position: relative; z-index: 1;
}
.card--soon .card__badge { color: var(--accent-amber); border-color: rgba(224, 136, 32, 0.40); }
.card--live .card__badge { color: var(--accent-gold); border-color: rgba(244, 183, 64, 0.45); }

/* ----- footer ----- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 24px 32px;
  text-align: center;
}
.footer__inner { display: flex; flex-direction: column; gap: 4px; }
.footer__line {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.footer__line--mute {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ----- focus states (accessibility) ----- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}
